﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ListSupplier.aspx.cs" Inherits="ProjectSem3.Admin.WebForm12" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server"><ul>
        <li><a href="Supplier.aspx"><span>Supplier</span></a></li>
        <li><a href="ListSupplier.aspx"><span>List Supplier</span></a></li>
        <li><a href="Categories.aspx"><span>Categories</span></a></li>
        <li><a href="ListCategories.aspx"><span>List Categories</span></a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
<div class="grid_9">
        <h1 class="dashboard">
           List Supplier
        </h1>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="SupplierID" DataSourceID="LinqDataSource1">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
                ShowSelectButton="True" />
            <asp:BoundField DataField="SupplierID" HeaderText="SupplierID" 
                InsertVisible="False" ReadOnly="True" SortExpression="SupplierID" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="Address" HeaderText="Address" 
                SortExpression="Address" />
            <asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
            <asp:BoundField DataField="TypeOf" HeaderText="TypeOf" 
                SortExpression="TypeOf" />
            <asp:CheckBoxField DataField="Status" HeaderText="Status" 
                SortExpression="Status" />
        </Columns>
    </asp:GridView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="ProjectSem3.dataDataContext" EnableDelete="True" 
            EnableInsert="True" EnableUpdate="True" EntityTypeName="" OrderBy="SupplierID" 
            TableName="Suppliers">
        </asp:LinqDataSource>
    </div>
    
</asp:Content>
